const express = require('express');
const {add,check} = require('../service/signup')
const signin = require('../service/signin')
const api = express.Router();
//用户注册
api.post('/signup',add)
//判断用户名，邮箱是否存在
api.get('/signup',check)

//用户登陆
api.post('/signin',signin)
module.exports = api